package com.woniuxy.lab.woniu_lab.controller.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author 17292
 */
@Data
@ApiModel("添加评论表单")
public class AddCommentForm {

    /**
     * 靶场ID
     */
    @NotNull(message = "靶场ID不能为空")
    @ApiModelProperty(value = "靶场ID" ,example = "1")
    private Integer rangeId;

    /**
     * 评论内容
     */
    @NotNull(message = "评论内容不能为空")
    @ApiModelProperty(value = "评论内容" ,example = "蜗牛币牛蜗")
    private String content;

    /**
     * 父评论ID(无父评论则为0)
     */
    @NotNull(message = "父评论ID不能为空,可以为0")
    @ApiModelProperty(value = "父评论ID(无父评论则为0)" ,example = "0")
    private Integer parentId;
}
